package com.neo.office.server.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.neo.office.server.config.data.Result;
import com.neo.office.server.domain.entity.Department;

import java.util.List;

public interface DepartmentService extends IService<Department> {

    /**
     * 获取所有部门
     * @return
     */
    List<Department> getAllDepartment();

    /**
     * 添加部门
     * @return
     */
    Result addDepartment(Department department);

    /**
     * 删除部门
     * @param id
     * @return
     */
    Result deleteDepartment(Integer id);
}
